﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="contract_child_edit.aspx.cs" Inherits="SF.Ucenter.admin.contract.contract_child_edit" %>

<%@ Import Namespace="SF.Common" %>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <title>编辑子合同</title>
    <link href="../../scripts/artdialog/ui-dialog.css" rel="stylesheet" type="text/css" />
    <link href="../skin/default/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../scripts/jquery/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" src="../../scripts/jquery/Validform_v5.3.2_min.js"></script>

    <script type="text/javascript" src="../../scripts/artdialog/dialog-plus-min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../js/laymain.js"></script>
    <script type="text/javascript" charset="utf-8" src="../js/common.js"></script>
    <script type="text/javascript">
        $(function () {
            //初始化表单验证
            $("#form1").initValidform();
        });

        function show() {
            var i = document.getElementById("ddlPaytype").value;
            if (i == 0) {
                document.getElementById("one").style.display = "inline";
                document.getElementById("two").style.display = "none";
                //文本框赋值
                document.getElementById("txtprice_one").value = "";
                document.getElementById("txtprice_low_one").value = "0";
                document.getElementById("txtprice_low").value = "0";
                document.getElementById("txtprice_height_two").value = "0";
                document.getElementById("txtprice_height").value = "0";
            } else if (i == 1) {
                document.getElementById("one").style.display = "none";
                document.getElementById("two").style.display = "inline";
                //文本框赋值
                document.getElementById("txtprice_one").value = "0";
                document.getElementById("txtprice_low_one").value = "";
                document.getElementById("txtprice_low").value = "";
                document.getElementById("txtprice_height_two").value = "";
                document.getElementById("txtprice_height").value = "";
            } else if(i == -1) {
                document.getElementById("one").style.display = "inline";
                document.getElementById("two").style.display = "inline";
                //文本框赋值
                document.getElementById("txtprice_low_one").value = "";
                document.getElementById("txtprice_low").value = "";
                document.getElementById("txtprice_height_two").value = "";
                document.getElementById("txtprice_height").value = "";
                document.getElementById("txtprice_one").value = "";
            }
        }
    </script>
</head>

<body class="mainbody">
    <form id="form1" runat="server">
        <!--导航栏-->
        <div class="location">
            <a href="contract_list.aspx" class="back"><i></i><span>返回列表页</span></a>
            <a href="../center.aspx" class="home"><i></i><span>首页</span></a>
            <i class="arrow"></i>
            <a href="contract_list.aspx"><span>合同</span></a>
            <i class="arrow"></i>
            <span>编辑子合同</span>
        </div>
        <div class="line10"></div>
        <!--/导航栏-->

        <!--内容-->
        <div id="floatHead" class="content-tab-wrap">
            <div class="content-tab">
                <div class="content-tab-ul-wrap">
                    <ul>
                        <li><a class="selected" href="javascript:;">子合同信息</a></li>
                    </ul>
                </div>
            </div>
        </div>

        <div class="tab-content">
            <dl>
                <dt>合同编号</dt>
                <dd>
                    <asp:TextBox ID="txtcontractnum" runat="server" Enabled="false" CssClass="input normal"></asp:TextBox>
                    <span class="Validform_checktip">*无需手动填写。</span>
                </dd>
            </dl>
            <dl>
                <dt>公众号</dt>
                <dd>
                    <asp:TextBox ID="txtappNum" runat="server" Enabled="false" CssClass="input normal"></asp:TextBox>
                    <span class="Validform_checktip">*无需手动填写。</span>
                </dd>
            </dl>
            <dl>
                <dt>收费类型</dt>
                <dd>
                    <div class="rule-single-select">
                        <%--<asp:DropDownList ID="ddlPaytype" runat="server" datatype="*" errormsg="请选择收费类型" sucmsg=" " OnSelectedIndexChanged="ddlPaytype_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>--%>
                        <asp:DropDownList ID="ddlPaytype" runat="server" onchange="show()" datatye="*" errormsg="请选择收费类型" sucmsg=" "></asp:DropDownList>
                        <span class="Validform_checktip">*请选择收费类型。</span>
                    </div>
                </dd>
            </dl>
            <div id="one">
                <dl>
                    <dt>费用(按每笔收费)</dt>
                    <dd>
                        <asp:TextBox ID="txtprice_one" runat="server" CssClass="input normal" datatype="/^([0-9.]+)$/" sucmsg=" "></asp:TextBox>
                        <span class="Validform_checktip">*若选择按每笔收费,则须填写信息且必须为数字。</span>
                    </dd>
                </dl>
            </div>
            <div id="two">
                <dl>
                    <dt>价格(每笔低于多少)</dt>
                    <dd>
                        <asp:TextBox ID="txtprice_low" runat="server" CssClass="input normal" datatype="/^([0-9.]+)$/" sucmsg=" "></asp:TextBox>
                        <span class="Validform_checktip">*若选择按超额收费,则须填写信息且必须为数字。</span>
                    </dd>
                </dl>
                <dl>
                    <dt>每笔低于多少的价格</dt>
                    <dd>
                        <asp:TextBox ID="txtprice_low_one" runat="server" CssClass="input normal" datatype="/^([0-9.]+)$/" sucmsg=" "></asp:TextBox>
                        <span class="Validform_checktip">*若选择按超额收费,则须填写信息且必须为数字。</span>
                    </dd>
                </dl>
                <dl>
                    <dt>价格(每笔高于多少)</dt>
                    <dd>
                        <asp:TextBox ID="txtprice_height" runat="server" CssClass="input normal" datatype="/^([0-9.]+)$/" sucmsg=" "></asp:TextBox>
                        <span class="Validform_checktip">*若选择按超额收费,则须填写信息且必须为数字。</span>
                    </dd>
                </dl>
                <dl>
                    <dt>每笔高于多少的价格</dt>
                    <dd>
                        <asp:TextBox ID="txtprice_height_two" runat="server" CssClass="input normal" datatype="/^([0-9.]+)$/" sucmsg=" "></asp:TextBox>
                        <span class="Validform_checktip">*若选择按超额收费,则须填写信息且必须为数字。</span>
                    </dd>
                </dl>
            </div>
            <dl>
                <dt>创建人</dt>
                <dd>
                    <asp:TextBox ID="txtcreatepeople" runat="server" CssClass="input normal" datatype="*2-5" sucmsg=""></asp:TextBox>
                    <span class="Validform_checktip">*请输入创建人姓名。</span>
                </dd>
            </dl>
        </div>
        <!--/内容-->

        <!--工具栏-->
        <div class="page-footer">
            <div class="btn-wrap">
                <asp:Button ID="btnSubmit" runat="server" Text="提交保存" CssClass="btn" OnClick="btnSubmit_Click" />
                <input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript: history.back(-1);" />
            </div>
        </div>
        <!--/工具栏-->
    </form>
</body>
</html>

